﻿using System;
using System.Data;
using System.Collections.Generic;
using WeiXinPF.Common;
using WeiXinPF.Model;
namespace WeiXinPF.BLL
{
    public class wx_wechat_matrix
    {
        private readonly WeiXinPF.DAL.wx_wechat_matrix dal = new WeiXinPF.DAL.wx_wechat_matrix();
        public wx_wechat_matrix() { }

        public int Add(WeiXinPF.Model.wx_wechat_matrix model)
        {
            return dal.Add(model);
        }

        public bool Update(WeiXinPF.Model.wx_wechat_matrix model)
        {
            return dal.Update(model);
        }

        public bool Delete(int id)
        {
            return dal.Delete(id);
        }

        public WeiXinPF.Model.wx_wechat_matrix DataRowToModel(DataRow row)
        {
            return dal.DataRowToModel(row);
        }

        public DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }

        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
        {
            return dal.GetListByPage(strWhere,orderby,startIndex,endIndex);
        }
    }
}
